home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / PRINTMON.IN_ / printmon.inf
Encoding:
INI File  |  1999-09-24  |  10.3 KB  |  285 lines

  1. [Identification]
  2.     OptionType = MONITOR
  3. [Options]
  4. "Local Port"                    = localmon
  5. "Standard TCP/IP Port"  = tcpmon
  6. [Identify]
  7.     read-syms Identification
  8.     set Status     = STATUS_SUCCESSFUL
  9.     set Identifier = $(OptionType)
  10.     set Media      = #("Source Media Descriptions", 1, 1)
  11.     Return $(Status) $(Identifier) $(Media)
  12. [ReturnOptions]
  13.     set Status        = STATUS_FAILED
  14.     set OptionList     = {}
  15.     set OptionTextList = {}
  16.     set LanguageList = ^(LanguagesSupported, 1)
  17.     Ifcontains(i) $($0) in $(LanguageList)
  18.         goto returnoptions
  19.     else
  20.         set Status = STATUS_NOLANGUAGE
  21.         goto finish_ReturnOptions
  22.     endif
  23. returnoptions = +
  24.     set OptionList     = ^(Options, 0)
  25.     set OptionTextList = ^(OptionsText$($0), 1)
  26.     set Status         = STATUS_SUCCESSFUL
  27. finish_ReturnOptions = +
  28.     Return $(Status) $(OptionList) $(OptionTextList)
  29. [InstallOption]
  30.     set Status   = STATUS_FAILED
  31.     set Option   = $($1)
  32.     set SrcDir   = $($2)
  33.     set AddCopy  = $($3)
  34.     set DoCopy   = $($4)
  35.     set DoConfig = $($5)
  36.     set LanguageList = ^(LanguagesSupported, 1)
  37.     Ifcontains(i) $($0) in $(LanguageList)
  38.     else
  39.         set Status = STATUS_NOLANGUAGE
  40.         goto finish_InstallOption
  41.     endif
  42.     read-syms Strings$($0)
  43.     set OptionList = ^(Options, 0)
  44.     ifcontains $(Option) in $(OptionList)
  45.     else
  46.         goto finish_InstallOption
  47.     endif
  48.     set OptionList = ""
  49.     set MonitorOption = #(Options, $(Option), 1)
  50. installtheoption = +
  51.     ifstr(i) $(AddCopy) == "YES"
  52.         install Install-AddCopyOption
  53.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  54.             Debug-Output "Adding video files to copy list failed"
  55.             goto finish_InstallOption
  56.         endif
  57.     endif
  58.     ifstr(i) $(DoCopy) == "YES"
  59.         read-syms ProgressCopy$($0)
  60.         install Install-DoCopyOption
  61.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  62.             Debug-Output "Copying files failed"
  63.             goto finish_InstallOption
  64.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  65.             set Status = STATUS_USERCANCEL
  66.             goto finish_InstallOption
  67.         endif
  68.     endif
  69.     ifstr(i) $(DoConfig) == "YES"
  70.         set MonitorPath      = $(!STF_PRNMONITORPATH)"\"#(Files-PrinterMonitor, $(MonitorOption), 2)
  71.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(MonitorPath)
  72.         ifstr(i) $(STATUS) == NO
  73.             set OptionText = #(OptionsText$($0), $(Option), 1)
  74.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  75.             Debug-Output "Copying printer files failed"
  76.             goto finish_InstallOption
  77.         endif
  78.         install Install-Configure
  79.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  80.             Debug-Output "Installing printer monitor failed"
  81.             goto finish_InstallOption
  82.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  83.             set Status = STATUS_USERCANCEL
  84.             goto finish_InstallOption
  85.         endif
  86.         ifstr(i) $(STATUS) != "ADDED"
  87.             set OptionText = #(OptionsText$($0), $(Option), 1)
  88.             ifstr(i) $(STATUS) == "PRESENT"
  89.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  90.                 set Status = STATUS_SUCCESSFUL
  91.             else-ifstr(i) $(STATUS) == "DENIED"
  92.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  93.             else
  94.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  95.             endif
  96.             goto finish_InstallOption
  97.         endif
  98.     endif
  99.     set Status = STATUS_SUCCESSFUL
  100. finish_InstallOption = +
  101.     Return $(Status)
  102. [Install-AddCopyOption]
  103.     set STF_VITAL = ""
  104.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  105.     AddSectionKeyFileToCopyList   Files-PrinterMonitor          +
  106.                                   $(MonitorOption)              +
  107.                                   $(SrcDir)                    +
  108.                                   $(!STF_PRNMONITORPATH)
  109.     ifstr(i) $(MonitorOption) == "tcpmon"
  110.         AddSectionFilesToCopyList Files-$(MonitorOption) $(SrcDir) $(!STF_PRNMONITORPATH)
  111.         AddSectionFilesToCopyList Files-$(MonitorOption)-MS $(SrcDir) $(!STF_PRNMONITORPATH)
  112.     endif
  113.     exit
  114. [Install-DoCopyOption]
  115.     CopyFilesInCopyList
  116.     exit
  117. [Install-Configure]
  118.     set Model       = $(Option)
  119.     set Monitor      = #(Files-PrinterMonitor, $(MonitorOption), 2)
  120.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterMonitor   +
  121.                                                $(Model)            +
  122.                                                $(!STF_PRNENVIRONM) +
  123.                                                $(Monitor)           +
  124.                                                $(!STF_PRINTSERVER)
  125.     exit
  126. [ExternalInstallOption]
  127.     Set !G:DebugOutputControl = 0
  128.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  129.     set DrivesToFree = {}
  130.     install LoadSetupLibrary
  131.     ifstr(i)      $(STF_LANGUAGE)  == ""
  132.         goto end
  133.     else-ifstr(i) $(OPTION)        == ""
  134.         goto end
  135.     else-ifstr(i) $(ADDCOPY)       == ""
  136.         goto end
  137.     else-ifstr(i) $(DOCOPY)        == ""
  138.         goto end
  139.     else-ifstr(i) $(DOCONFIG)      == ""
  140.         goto end
  141.     endif
  142.     read-syms PlatformID
  143.     read-syms ProductType
  144.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  145.         set STF_PRNPLATFORM = "w32x86"
  146.         set STF_PRNENVIRONM = "Windows NT x86"
  147.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  148.         set STF_PRNPLATFORM = "w32mips"
  149.         set STF_PRNENVIRONM = "Windows NT R4000"
  150.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_PPC)
  151.         set STF_PRNPLATFORM = "w32ppc"
  152.         set STF_PRNENVIRONM = "Windows NT PowerPC"
  153.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  154.         set STF_PRNPLATFORM = "w32alpha"
  155.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  156.     else
  157.         goto end
  158.     endif
  159.     read-syms UiVars
  160.     detect    UiVars
  161.     read-syms Strings$(STF_LANGUAGE)
  162.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  163.         goto skip_asksource
  164.     endif
  165.     set STF_SRCDIR = A:\
  166.     shell "registry.inf" GetNTSource
  167.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  168.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  169.     else
  170.         set STF_SRCDIR = $($R1)
  171.     endif
  172.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  173.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  174.         Debug-Output "shelling DoAskSource failed"
  175.         goto end
  176.     endif
  177.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  178.         set STF_SRCDIR  = $($R1)
  179.         ifstr(i) $($R2) != ""
  180.             set DrivesToFree = >($(DrivesToFree), $($R2))
  181.         endif
  182.     else
  183.         goto end
  184.     endif
  185. skip_asksource = +
  186.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNMONITORPATH)
  187.     ifstr(i) $(IsFullPath) == "NO"
  188.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNMONITORPATH)
  189.         ifstr(i) $(STATUS) == "ERROR"
  190.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  191.             goto end
  192.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  193.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  194.             goto end
  195.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  196.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  197.             goto end
  198.         else
  199.             set STF_PRNMONITORPATH = $(STATUS)
  200.         endif
  201.     endif
  202.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  203.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  204.         Debug-Output "Execing InstallOption failed"
  205.         goto end
  206.     endif
  207.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  208.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  209.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  210.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  211.     endif
  212. end =+
  213.     ForListDo $(DrivesToFree)
  214.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  215.     EndForListDo
  216.     install   FreeSetupLibrary
  217.     exit
  218. [LoadSetupLibrary]
  219.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  220.     exit
  221. [FreeSetupLibrary]
  222.     FreeLibrary $(!LIBHANDLE)
  223.     exit
  224. [PlatformID]
  225.     PlatformID_PPC = ppc
  226.     PlatformID_I386 = I386
  227.     PlatformID_Mips = Mips
  228.     PlatformID_Alpha  = Alpha
  229. [UiVars]
  230.     STF_CONTROLSET     = CurrentControlSet
  231.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  232.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  233.      STF_PRNMONITORPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  234. [PrinterMonitorsWithHelp]
  235.    tcpmon
  236. [Source Media Descriptions]
  237.     1 = "Windows 2000 Professional (Beta 3) CD-ROM" , TAGFILE = cdrom_ip.5b3
  238. [Signature]
  239.     FileType = MICROSOFT_FILE
  240. [GetSignature]
  241.     read-syms Signature
  242.     return $(FileType)
  243. [ProductType]
  244. STF_PRODUCT  = Winnt
  245. STF_PLATFORM = I386
  246. [Files-PrinterMonitor]
  247. hpmon = 1,HPMON.DLL , SIZE=999
  248. localmon = 1,LOCALMON.DLL , SIZE=999
  249. tcpmon = 1,TCPMON.DLL , SIZE=999
  250. [Files-PrinterMonitorHelp]
  251. hpmon = 1,HPMON.HLP , SIZE=45631
  252. tcpmon = 1,TCPMON.HLP , SIZE=12646
  253. [Files-tcpmon-MS]
  254. 1,MGMTAPI.DLL , SIZE=999
  255. 1,SNMPAPI.DLL , SIZE=999
  256. 1,WSNMP32.DLL , SIZE=999
  257. [Files-tcpmon]
  258. 1,TCPMIB.DLL , SIZE=999
  259. 1,TCPMON.INI , SIZE=35440
  260. 1,TCPMONUI.DLL , SIZE=999
  261. [LanguagesSupported]
  262.     ENG
  263. [OptionsTextENG]
  264. "Local Port"                                 = "Local Port"
  265. "Standard TCP/IP Port"            = "Standard TCP/IP Port"
  266. [StringsENG]
  267.     String1 = "The monitor "
  268.     String2 = " is already installed."
  269.     String3 = "Failed to connect to the print server."
  270.     String4 = "The monitor files for the selected monitor "
  271.     String5 = " couldn't be copied.  Failed to install the monitor."
  272.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  273.               "group to carry out this operation."
  274.     String7 = " could not be installed."
  275.     String8 = "Installation cancelled by user. "
  276.     String9 = " was not installed."
  277. [ProgressCopyENG]
  278.     ProCaption   = "Windows NT Setup"
  279.     ProCancel    = "Cancel"
  280.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  281.                    "to cancel copying files?"
  282.     ProCancelCap = "Setup Message"
  283.     ProText1     = "Copying:"
  284.     ProText2     = "To:"
  285.